<?php
class Categories extends CWidget {
    public function init() {
        parent::init();
    }
    
    public function Categories() {
        $jobtype = Jobtype::model()->findAllByAttributes(array());
        $subjobtype = SubJobtype::model()->findAllByAttributes(array());
        $this->render('category', array('subjobtype'=>$subjobtype, 'jobtype'=>$jobtype));
    }
}
?>